package com.tarena.lbs.user.service.impl;

import com.tarena.lbs.business.api.BusinessApi;
import com.tarena.lbs.business.api.pojo.BusinessDto;
import com.tarena.lbs.user.api.UserApi;
import com.tarena.lbs.user.api.pojo.dto.AdminDto;
import com.tarena.lbs.user.service.DubboService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
@org.apache.dubbo.config.annotation.DubboService(version = "1.0.0")
public class DubboServiceImpl implements DubboService {

   @DubboReference(version = "1.0.0")
   private BusinessApi businessApi;


   @Override
   public BusinessDto selectByBusinessId(Integer id) {

      BusinessDto count = businessApi.getBusinessById(id);
      return count;
   }
}
